/*
 ============================================================================
 Name		: IconUtils.h
 Author	  : Den Grigorenko
 Copyright   : Copyright (c) 2008 Den123
 Description : Simple utils for icon drawing
 ============================================================================
 */

#ifndef __ICON_UTILS_H__
#define __ICON_UTILS_H__

#include <coecntrl.h> 
#include <gulicon.h>

class IconUtils
{
   public:	
      static CGulIcon* CreateIconL( TInt aIconId, TInt aIconMaskId );   
      static void SetIconSizeL( CGulIcon* anIcon, TInt aWidth, TInt aHeight );
      static void SetIconSizeL( CGulIcon* anIcon, TInt aWidth, TInt aHeight, TInt anAngle );
      static void DrawIconL( CBitmapContext& aGc, CGulIcon* anIcon, TInt aX, TInt aY );
      
      static void RotateBitmapL( CFbsBitmap* aBitmap, CFbsBitmap* aResultBitmap, TInt aAngle );
};    

#endif
